﻿package Message.Public
{
    import Framework.MQ.*;
    import Framework.Serialize.*;

    public class SLotteryPoolMsg extends IMessageBase
    {
        public var zoneB:int;
        public var mainLotteryPool:int;
        public var deputyLotteryPool:Number;
        public const _type:int = 206;
        public static var _regist:SLotteryPoolMsg = new SLotteryPoolMsg(true);

        public function SLotteryPoolMsg(param1:Boolean = false)
        {
            if (param1)
            {
                MessageManager.instance().regist(this);
            }
            return;
        }// end function

        override public function getType() : int
        {
            return this._type;
        }// end function

        override public function clone() : IMessageBase
        {
            return new SLotteryPoolMsg();
        }// end function

        override public function __write(param1:SerializeStream) : void
        {
            param1.writeInt(this.zoneB);
            param1.writeInt(this.mainLotteryPool);
            param1.writeFloat(this.deputyLotteryPool);
            return;
        }// end function

        override public function __read(param1:SerializeStream) : void
        {
            this.zoneB = param1.readInt();
            this.mainLotteryPool = param1.readInt();
            this.deputyLotteryPool = param1.readFloat();
            return;
        }// end function

    }
}
